import { Store } from '@ngrx/store';
import { Injectable } from '@angular/core';
import { MsgAction } from "./msg.redux";
@Injectable()
export class  PropupMsgReduxService{
   
    table:Store<any>;

    constructor(private store:Store<any>){
        this.table = this.store.select('msg');    
    }

    dispatch(action:MsgAction):void{
        this.table.dispatch(action);
    }

    getTable():Store<any>{
        return this.table;
    }
}